package com.one.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;



import com.one.dao.TeacherDao;
import com.one.entity.Teacher;
import com.one.service.TeacherService;
/**
 * 类描述:业务层接口实现类
 * 项目名称: one_upbring
 * 作者: 付朋辉
 * 创建时间: 2019年4月27日
 */
@Service
public class TeacherServiceImpl implements TeacherService {
	@Resource
	private TeacherDao td;
	/**
	 * 登录
	 */
	@Override
	public Map<String, Object> teaLogin(String tAcc, String tPassword) {
		// TODO Auto-generated method stub
		return td.teaLogin(tAcc, tPassword);
	}
	/**
	 * 注册
	 */
	@Override
	public void addTeacher(Teacher teacher) {
		td.addTeacher(teacher);
		
	}
	/**
	 * 查询全部
	 */
	@Override
	public List<Teacher> allTea() {
		return td.allTea();
	}

}
